<?php
namespace app\command;

use think\console\Command;
use think\console\Input;
use think\console\Output;
use app\services\Settlement as Settle;

class Settlement extends Command {

    protected function configure()
    {
        $this->setName('Settlement')->setDescription('财务账单统计');
    }

    protected function execute(Input $input, Output $output)
    {
        // 你的定时任务逻辑
        $stat = new Settle();
//        $stat->settlement(); // 订单结算
//        $output->writeln('定时任务执行时间: ' . date('Y-m-d H:i:s'));
        $stat->settlement_month(); // 游戏结算
        $output->writeln('定时任务执行时间: ' . date('Y-m-d H:i:s'));
    }
}
